package com.aosan.website.admin.controller

import com.aosan.website.admin.service.DictService
import com.aosan.website.common.core.utils.ResultData
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("/dict")
class DictController(val dictService: DictService) {

    @GetMapping("/list")
    fun getDictList(): Any {
        return ResultData.get(dictService.list())
    }
}